#pragma once
#include "ALBaseSaliency.h"

class CALSRudinac : public CALBaseSaliency
{
public:
	CALSRudinac();
	CALSRudinac(CALStepItem* pStepItem);
	~CALSRudinac();

public:
	//https://github.com/abin24/Saliency-detection-toolbox

	virtual void test();
	virtual void convert();
	virtual void convert(const Mat &src, Mat &dst);

public:
	void calculateSaliencyMap(const Mat* src, Mat* dst, int corlor = 1);

private:
	Mat r, g, b, RG, BY, I;
	void createChannels(const Mat* src);
	void createSaliencyMap(const Mat src, Mat* dst);
};

